/*
 * Utils.java
 *
 * Created on 15 de Julho de 2006, 22:21
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package negocio;

import java.io.File;

import javax.swing.JFileChooser;

/**
 *
 * @author Leo
 */
public class Utils {
    
        public static File getJFileChooser(){
        
            JFileChooser j = new JFileChooser();
            j.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
            j.showOpenDialog(j);
            File arquivo = j.getSelectedFile();               
            return arquivo;
    }
        
    public static File getJFileChooserArq(){
        
            JFileChooser j = new JFileChooser();
            j.showOpenDialog(j);
            File arquivo = j.getSelectedFile();
            return arquivo;
    } 
    
}
